package com.generate;

import javax.swing.JComboBox;


public class Test
{

	/**
	 * @param args
	 */
	//	public static void main(String[] args) {
	//		String str = "@VARIANT{0}:START@\n\n##################### Insert Media ##################\n# VARIAN @VARIANT_{0}_CODE@\nINSERT_UPDATE Media	;mediaFormat(qualifier)	;code[unique=true]	  				;@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator]	     	;mime[default='image/jpeg']	;$catalogVersion;folder(qualifier)			@IMAGE_FILE_BLOCK_{0}_96Wx96H:START@@IMAGE_DETAIL_NUMBER_1:START@\n					;96Wx96H				;$variant{0}ImageName104x104_1.png  	;$siteResource/images/104Wx104H/$variant{0}ImageName104x104_1.png						;	                        ;	            ;images@IMAGE_DETAIL_NUMBER_1:END@@IMAGE_DETAIL_NUMBER_2:START@\n					;96Wx96H				;$variant{0}ImageName104x104_2.png  	;$siteResource/images/104Wx104H/$variant{0}ImageName104x104_2.png						;	                        ;	            ;images@IMAGE_DETAIL_NUMBER_2:END@@IMAGE_DETAIL_NUMBER_3:START@\n					;96Wx96H				;$variant{0}ImageName104x104_3.png  	;$siteResource/images/104Wx104H/$variant{0}ImageName104x104_3.png						;	                        ;	            ;images@IMAGE_DETAIL_NUMBER_3:END@@IMAGE_FILE_BLOCK_{0}_96Wx96H:END@@IMAGE_FILE_BLOCK_{0}_125Wx90H:START@\n					;125Wx90H				;$variant{0}ImageName125x90.png  		;$siteResource/images/125Wx90H/$variant{0}ImageName125x90.png							;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_125Wx90H:END@@IMAGE_FILE_BLOCK_{0}_128Wx114H:START@\n					;128Wx114H				;$variant{0}ImageName128x114.png  	;$siteResource/images/128Wx114H/$variant{0}ImageName128x114.png						;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_128Wx114H:END@@IMAGE_FILE_BLOCK_{0}_128Wx85H:START@\n					;128Wx85H				;$variant{0}ImageName128x85.png  		;$siteResource/images/128Wx85H/$variant{0}ImageName128x85.png							;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_128Wx85H:END@@IMAGE_FILE_BLOCK_{0}_130Wx130H:START@\n					;130Wx130H				;$variant{0}ImageName130x130.png  	;$siteResource/images/130Wx130H/$variant{0}ImageName130x130.png						;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_130Wx130H:END@@IMAGE_FILE_BLOCK_{0}_130Wx80H:START@\n					;130Wx80H				;$variant{0}ImageName130x80.png  		;$siteResource/images/130Wx80H/$variant{0}ImageName130x80.png							;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_130Wx80H:END@@IMAGE_FILE_BLOCK_{0}_138Wx80H:START@\n					;138Wx80H				;$variant{0}ImageName138x80.png  		;$siteResource/images/138Wx80H/$variant{0}ImageName138x80.png							;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_138Wx80H:END@@IMAGE_FILE_BLOCK_{0}_164Wx115H:START@\n					;164Wx115H				;$variant{0}ImageName164x115.png  	;$siteResource/images/164Wx115H/$variant{0}ImageName164x115.png						;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_164Wx115H:END@@IMAGE_FILE_BLOCK_{0}_220Wx120H:START@\n					;220Wx120H				;$variant{0}ImageName220x120.png  	;$siteResource/images/220Wx120H/$variant{0}ImageName220x120.png						;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_220Wx120H:END@@IMAGE_FILE_BLOCK_{0}_300Wx180H:START@\n					;300Wx180H				;$variant{0}ImageName300x180.png  	;$siteResource/images/300Wx180H/$variant{0}ImageName300x180.png						;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_300Wx180H:END@@IMAGE_FILE_BLOCK_{0}_30Wx32H:START@\n					;30Wx32H				;$variant{0}ImageName30x32.png  		;$siteResource/images/30Wx32H/$variant{0}ImageName30x32.png							;	                        ;	            ;images@IMAGE_FILE_BLOCK_{0}_30Wx32H:END@@IMAGE_FILE_BLOCK_{0}_300Wx300H:START@@IMAGE_DETAIL_NUMBER_1:START@\n					;300Wx300H				;$variant{0}ImageName480x316_1.png  	;$siteResource/images/480Wx316H/$variant{0}ImageName480x316_1.png						;	                        ;	            ;images@IMAGE_DETAIL_NUMBER_1:END@@IMAGE_DETAIL_NUMBER_2:START@\n					;300Wx300H				;$variant{0}ImageName480x316_2.png  	;$siteResource/images/480Wx316H/$variant{0}ImageName480x316_2.png						;	                        ;	            ;images@IMAGE_DETAIL_NUMBER_2:END@@IMAGE_DETAIL_NUMBER_3:START@\n					;300Wx300H				;$variant{0}ImageName480x316_3.png  	;$siteResource/images/480Wx316H/$variant{0}ImageName480x316_3.png						;	                        ;	            ;images@IMAGE_DETAIL_NUMBER_3:END@@IMAGE_FILE_BLOCK_{0}_300Wx300H:END@									\nINSERT_UPDATE MediaContainer	;qualifier[unique=true]	;$medias	;$catalogVersion						\n								;$variant{0}ImageName1_container		;@IMAGE_FILE_BLOCK_{0}_96Wx96H:START@$variant{0}ImageName104x104_1.png, @IMAGE_FILE_BLOCK_{0}_96Wx96H:END@$variant{0}ImageName480x316_1.png;@IMAGE_DETAIL_NUMBER_2:START@\n								;$variant{0}ImageName2_container		;@IMAGE_FILE_BLOCK_{0}_96Wx96H:START@$variant{0}ImageName104x104_2.png, @IMAGE_FILE_BLOCK_{0}_96Wx96H:END@$variant{0}ImageName480x316_2.png, $variant{0}ImageName480x316_1.png@IMAGE_FILE_BLOCK_{0}_96Wx96H:START@, $variant{0}ImageName104x104_1.png@IMAGE_FILE_BLOCK_{0}_96Wx96H:END@;@IMAGE_DETAIL_NUMBER_2:END@@IMAGE_DETAIL_NUMBER_3:START@		\n								;$variant{0}ImageName3_container		;@IMAGE_FILE_BLOCK_{0}_96Wx96H:START@$variant{0}ImageName104x104_3.png, @IMAGE_FILE_BLOCK_{0}_96Wx96H:END@$variant{0}ImageName480x316_3.png, $variant{0}ImageName480x316_1.png@IMAGE_FILE_BLOCK_{0}_96Wx96H:START@, $variant{0}ImageName104x104_1.png@IMAGE_FILE_BLOCK_{0}_96Wx96H:END@;@IMAGE_DETAIL_NUMBER_3:END@\n								;$variant{0}ImageNamecontainer		;$variant{0}ImageName125x90.png, $variant{0}ImageName128x114.png, $variant{0}ImageName128x85.png, $variant{0}ImageName130x130.png, $variant{0}ImageName130x80.png, $variant{0}ImageName138x80.png, $variant{0}ImageName164x115.png, $variant{0}ImageName220x120.png, $variant{0}ImageName300x180.png, $variant{0}ImageName30x32.png, $variant{0}ImageName480x316_1.png@IMAGE_FILE_BLOCK_{0}_96Wx96H:START@, $variant{0}ImageName104x104_1.png@IMAGE_FILE_BLOCK_{0}_96Wx96H:END@;\n									\nUPDATE ElectronicsColorVariantProduct ;code[unique=true]; $catalogVersion; $colorSwatch\n									  ;$variant{0}Code     ;                ;$variant{0}ImageName30x32.png\n\nUPDATE Product	;code[unique=true]	;$picture	;$thumbnail	;$detail	;$others	;$normal	;$thumbnails	;$galleryImages	;$catalogVersion\n				;$variant{0}Code	        ;$variant{0}ImageName480x316_1.png	;$variant{0}ImageName300x180.png	;$variant{0}ImageName480x316_1.png	;$variant{0}ImageName480x316_1.png	;$variant{0}ImageName480x316_1.png	;$variant{0}ImageName104x104_1.png, $variant{0}ImageName125x90.png	;$variant{0}ImageNamecontainer, $variant{0}ImageName1_container@IMAGE_DETAIL_NUMBER_2:START@,$variant{0}ImageName2_container@IMAGE_DETAIL_NUMBER_3:END@@IMAGE_DETAIL_NUMBER_3:START@,$variant{0}ImageName3_container@IMAGE_DETAIL_NUMBER_3:END@	;@VARIANT{0}:END@";
	//		for (int i = 1; i <= 8; i++) {
	//			System.out.print(str.replace("{0}", "" + i));
	//		}
	//
	//		// for (int i = 1; i <= 3; i++) {
	//		// System.out.print("@IMAGE_DETAIL_NUMBER_" + i + ":START@\n"
	//		// + str.replaceAll("1(\\.png)", "" + i + "$1")
	//		// + "@IMAGE_DETAIL_NUMBER_" + i + ":END@");
	//		// }
	//	}

	public static void main(String[] argv) throws Exception
	{
		String[] items =
		{ "A", "A", "B", "B", "C", "C" };
		JComboBox cb = new JComboBox(items);
		cb.setKeySelectionManager(new MyKeySelectionManager());
	}

}
